<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function longest(a){
            var b=[];
            
            
            for(var i=0;i<a;i++){
         
                var c =prompt("数");
                b.push(c);
          
                
            }
           
            console.log("无法再次输入")
            return b;
        }

        console.log(longest(10))
        
           
    </script>
</body>
</html>